package com.opensource.coponent.zookeeper.code;

import org.apache.zookeeper.KeeperException;

import java.io.IOException;

/**
 * Hello world!
 *
 */
public class App {

    public static void main(String[] args) throws IOException, KeeperException, InterruptedException
    {
//        ZooKeeper zk = new ZooKeeper("localhost:2181", 3000, System.out::println);
//
//        Stat e=zk.exists("/yangqi_test",null);
//
//        System.out.println("exists "+e);
//
//        zk.setData("/yangqi_test", "Data of node 3".getBytes(), -1);
    }

}
